package com.codebyorder.req;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data//无参,getter&setter/toString
public class PageReq implements Serializable {
    /**
     * 页码
     */
    @NotNull(message = "【页码】不能为空")
    private Integer page;

    /**
     * 显示的数量
     */
    @NotNull(message = "【每页条数】不能为空")
    @Max(value = 1000, message = "【每页条数】不能超过1000")
    private Integer size;
}